package com.example.sonone.pojo;



/**
 * Created by 爆裂无球 on 2019/4/17.
 */

public class Order extends BaseDomin {

    private Long orderId;

    private String userId;

    private double money;


    public Order() {
    }

    public Order(Long orderId, String userId, double money) {
        this.orderId = orderId;
        this.userId = userId;
        this.money = money;
    }

    public Order(String tableSuffix, String aa, Long orderId, String userId, double money) {
        super(tableSuffix, aa);
        this.orderId = orderId;
        this.userId = userId;
        this.money = money;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId=" + orderId +
                ", userId='" + userId + '\'' +
                ", money=" + money +
                '}';
    }

    public static void main(String[] args) {
        BaseDomin b=new BaseDomin();
        b.setAa("zhangjianqiu");
        b.setTableSuffix("123");

        Order o=new Order();
        o.setMoney(12);
        o.setAa("123");
        System.out.println(o);
    }
}

